<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Banner/index')}">轮播图管理</a></li>
        <li><a href="{:url('Banner/add')}">添加轮播图</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('Banner/index')}">
        <input type="text" class="form-control" name="lb" style="width: 200px;" value="{:input('request.lb/s','')}" placeholder="根据地址搜索">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Banner/index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('Banner/px')}">
        <div class="table-actions">
            <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">排序</button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>
                    <input type="checkbox" name="" lay-filter="checkAll" lay-skin="primary">
                </th>
                <th>排序</th>
                <th>ID</th>
                <th>地址</th>
                <th>图片</th>
                <th>操作</th>

            </tr>
            </thead>
            <tbody>
            <foreach name="banner" item="v">
                <tr>
                    <td><input type="checkbox"></td>
                    <td><input type="text" style="width: 50px" value="{$v.list_order}" name="list_orders[{$v.id}]"></td>
                    <td>{$v.id}</td>
                    <td>{$v.url}</td>
                    <td>
                        <img src="/upload/{$v.image}" class="img-thumbnail" style="width: 80px;height: 40px">
                    </td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('Banner/edit')}?id={$v.id}">编辑</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Banner/del')}?id={$v.id}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">
            {$banner->render()|raw}
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
